package com.springboot.model;

import java.util.Date;

public class ChatRecord {
    private Integer chatId;

    private Integer senderId;

    private Integer receiverId;

    private String chatContent;

    private Date chatTime;

    private String receiverState;//接收方状态

    private Integer flag1;//是否是当前用户发送

    private String photoLink;//照片链接

    private Integer flag2;//是否是照片

    private Integer assistantId;//助理ID

    private Integer patientFlag;//患者是否删除记录

    private Integer doctorFlag;

    private Integer assistantFlag;

    public ChatRecord() {
        this.chatTime=new Date();
        this.receiverState="未读";
        this.patientFlag=0;
        this.doctorFlag=0;
        this.assistantFlag=0;
    }

    public ChatRecord(Integer chatId, Integer senderId, Integer receiverId, String chatContent,
                      Date chatTime, String receiverState, Integer flag1, String photoLink, Integer flag2,
                      Integer assistantId, Integer patientFlag, Integer doctorFlag, Integer assistantFlag) {
        this.chatId = chatId;
        this.senderId = senderId;
        this.receiverId = receiverId;
        this.chatContent = chatContent;
        this.chatTime = chatTime;
        this.receiverState = receiverState;
        this.flag1 = flag1;
        this.photoLink = photoLink;
        this.flag2 = flag2;
        this.assistantId = assistantId;
        this.patientFlag = patientFlag;
        this.doctorFlag = doctorFlag;
        this.assistantFlag = assistantFlag;
    }

    public Integer getChatId() {
        return chatId;
    }

    public void setChatId(Integer chatId) {
        this.chatId = chatId;
    }

    public Integer getSenderId() {
        return senderId;
    }

    public void setSenderId(Integer senderId) {
        this.senderId = senderId;
    }

    public Integer getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(Integer receiverId) {
        this.receiverId = receiverId;
    }

    public String getChatContent() {
        return chatContent;
    }

    public void setChatContent(String chatContent) {
        this.chatContent = chatContent;
    }

    public Date getChatTime() {
        return chatTime;
    }

    public void setChatTime(Date chatTime) {
        this.chatTime = chatTime;
    }

    public String getReceiverState() {
        return receiverState;
    }

    public void setReceiverState(String receiverState) {
        this.receiverState = receiverState;
    }

    public Integer getFlag1() {
        return flag1;
    }

    public void setFlag1(Integer flag1) {
        this.flag1 = flag1;
    }

    public String getPhotoLink() {
        return photoLink;
    }

    public void setPhotoLink(String photoLink) {
        this.photoLink = photoLink;
    }

    public Integer getFlag2() {
        return flag2;
    }

    public void setFlag2(Integer flag2) {
        this.flag2 = flag2;
    }

    public Integer getAssistantId() {
        return assistantId;
    }

    public void setAssistantId(Integer assistantId) {
        this.assistantId = assistantId;
    }

    public Integer getPatientFlag() {
        return patientFlag;
    }

    public void setPatientFlag(Integer patientFlag) {
        this.patientFlag = patientFlag;
    }

    public Integer getDoctorFlag() {
        return doctorFlag;
    }

    public void setDoctorFlag(Integer doctorFlag) {
        this.doctorFlag = doctorFlag;
    }

    public Integer getAssistantFlag() {
        return assistantFlag;
    }

    public void setAssistantFlag(Integer assistantFlag) {
        this.assistantFlag = assistantFlag;
    }


    public String toTestString() {
        return "ChatRecord{" +
                "chatId=" + chatId +
                ", senderId=" + senderId +
                ", receiverId=" + receiverId +
                ", chatContent='" + chatContent + '\'' +
                ", chatTime=" + chatTime +
                ", receiverState='" + receiverState + '\'' +
                ", flag1=" + flag1 +
                ", photoLink='" + photoLink + '\'' +
                ", flag2=" + flag2 +
                ", assistantId=" + assistantId +
                ", patientFlag=" + patientFlag +
                ", doctorFlag=" + doctorFlag +
                ", assistantFlag=" + assistantFlag +
                '}';
    }
}